package com.woniuxy.woniuhis.entity;

import java.util.Date;

import com.github.houbb.sensitive.annotation.Sensitive;
import com.github.houbb.sensitive.core.api.strategory.StrategyPassword;
import com.github.houbb.sensitive.core.api.strategory.StrategyPhone;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Emp {
    private String empId;

    private String empName;
    
    @Sensitive(strategy = StrategyPassword.class)
    private String empPassword;

    private String empGender;

    private Date empHiredate;
    
    @Sensitive(strategy = StrategyPhone.class)
    private String empTel;

    private String empIdcard;

    private String hospitalId;

    //角色外键
    private String jobId;
    //科室外键
    private String officeId;
    //部门外键
    private String depId;
    //头像图片
    private String empPic;
    //员工所属部门
    private Dep dep;
    //员工所属医院
    private Hospital hospital;
    //员工所属科室
    private Office office;
    
	public Emp(String empId, String empName, String empPassword, String empGender, Date empHiredate, String empTel,
			String empIdcard, String hospitalId, String jobId, String officeId, String depId, String empPic) {
		super();
		this.empId = empId;
		this.empName = empName;
		this.empPassword = empPassword;
		this.empGender = empGender;
		this.empHiredate = empHiredate;
		this.empTel = empTel;
		this.empIdcard = empIdcard;
		this.hospitalId = hospitalId;
		this.jobId = jobId;
		this.officeId = officeId;
		this.depId = depId;
		this.empPic = empPic;
	}

}